package com.qike.baoxiu.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UserDeviceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserDeviceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUidIsNull() {
            addCriterion("uid is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uid is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Integer value) {
            addCriterion("uid =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Integer value) {
            addCriterion("uid <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Integer value) {
            addCriterion("uid >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uid >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Integer value) {
            addCriterion("uid <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Integer value) {
            addCriterion("uid <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Integer> values) {
            addCriterion("uid in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Integer> values) {
            addCriterion("uid not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Integer value1, Integer value2) {
            addCriterion("uid between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Integer value1, Integer value2) {
            addCriterion("uid not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(Date value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(Date value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(Date value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(Date value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(Date value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<Date> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<Date> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(Date value1, Date value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(Date value1, Date value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andCpuIsNull() {
            addCriterion("cpu is null");
            return (Criteria) this;
        }

        public Criteria andCpuIsNotNull() {
            addCriterion("cpu is not null");
            return (Criteria) this;
        }

        public Criteria andCpuEqualTo(String value) {
            addCriterion("cpu =", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuNotEqualTo(String value) {
            addCriterion("cpu <>", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuGreaterThan(String value) {
            addCriterion("cpu >", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuGreaterThanOrEqualTo(String value) {
            addCriterion("cpu >=", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuLessThan(String value) {
            addCriterion("cpu <", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuLessThanOrEqualTo(String value) {
            addCriterion("cpu <=", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuLike(String value) {
            addCriterion("cpu like", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuNotLike(String value) {
            addCriterion("cpu not like", value, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuIn(List<String> values) {
            addCriterion("cpu in", values, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuNotIn(List<String> values) {
            addCriterion("cpu not in", values, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuBetween(String value1, String value2) {
            addCriterion("cpu between", value1, value2, "cpu");
            return (Criteria) this;
        }

        public Criteria andCpuNotBetween(String value1, String value2) {
            addCriterion("cpu not between", value1, value2, "cpu");
            return (Criteria) this;
        }

        public Criteria andHardDiskIsNull() {
            addCriterion("hard_disk is null");
            return (Criteria) this;
        }

        public Criteria andHardDiskIsNotNull() {
            addCriterion("hard_disk is not null");
            return (Criteria) this;
        }

        public Criteria andHardDiskEqualTo(String value) {
            addCriterion("hard_disk =", value, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andHardDiskNotEqualTo(String value) {
            addCriterion("hard_disk <>", value, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andHardDiskGreaterThan(String value) {
            addCriterion("hard_disk >", value, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andHardDiskGreaterThanOrEqualTo(String value) {
            addCriterion("hard_disk >=", value, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andHardDiskLessThan(String value) {
            addCriterion("hard_disk <", value, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andHardDiskLessThanOrEqualTo(String value) {
            addCriterion("hard_disk <=", value, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andHardDiskLike(String value) {
            addCriterion("hard_disk like", value, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andHardDiskNotLike(String value) {
            addCriterion("hard_disk not like", value, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andHardDiskIn(List<String> values) {
            addCriterion("hard_disk in", values, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andHardDiskNotIn(List<String> values) {
            addCriterion("hard_disk not in", values, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andHardDiskBetween(String value1, String value2) {
            addCriterion("hard_disk between", value1, value2, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andHardDiskNotBetween(String value1, String value2) {
            addCriterion("hard_disk not between", value1, value2, "hardDisk");
            return (Criteria) this;
        }

        public Criteria andSystemIsNull() {
            addCriterion("system is null");
            return (Criteria) this;
        }

        public Criteria andSystemIsNotNull() {
            addCriterion("system is not null");
            return (Criteria) this;
        }

        public Criteria andSystemEqualTo(String value) {
            addCriterion("system =", value, "system");
            return (Criteria) this;
        }

        public Criteria andSystemNotEqualTo(String value) {
            addCriterion("system <>", value, "system");
            return (Criteria) this;
        }

        public Criteria andSystemGreaterThan(String value) {
            addCriterion("system >", value, "system");
            return (Criteria) this;
        }

        public Criteria andSystemGreaterThanOrEqualTo(String value) {
            addCriterion("system >=", value, "system");
            return (Criteria) this;
        }

        public Criteria andSystemLessThan(String value) {
            addCriterion("system <", value, "system");
            return (Criteria) this;
        }

        public Criteria andSystemLessThanOrEqualTo(String value) {
            addCriterion("system <=", value, "system");
            return (Criteria) this;
        }

        public Criteria andSystemLike(String value) {
            addCriterion("system like", value, "system");
            return (Criteria) this;
        }

        public Criteria andSystemNotLike(String value) {
            addCriterion("system not like", value, "system");
            return (Criteria) this;
        }

        public Criteria andSystemIn(List<String> values) {
            addCriterion("system in", values, "system");
            return (Criteria) this;
        }

        public Criteria andSystemNotIn(List<String> values) {
            addCriterion("system not in", values, "system");
            return (Criteria) this;
        }

        public Criteria andSystemBetween(String value1, String value2) {
            addCriterion("system between", value1, value2, "system");
            return (Criteria) this;
        }

        public Criteria andSystemNotBetween(String value1, String value2) {
            addCriterion("system not between", value1, value2, "system");
            return (Criteria) this;
        }

        public Criteria andVideoCardIsNull() {
            addCriterion("video_card is null");
            return (Criteria) this;
        }

        public Criteria andVideoCardIsNotNull() {
            addCriterion("video_card is not null");
            return (Criteria) this;
        }

        public Criteria andVideoCardEqualTo(String value) {
            addCriterion("video_card =", value, "videoCard");
            return (Criteria) this;
        }

        public Criteria andVideoCardNotEqualTo(String value) {
            addCriterion("video_card <>", value, "videoCard");
            return (Criteria) this;
        }

        public Criteria andVideoCardGreaterThan(String value) {
            addCriterion("video_card >", value, "videoCard");
            return (Criteria) this;
        }

        public Criteria andVideoCardGreaterThanOrEqualTo(String value) {
            addCriterion("video_card >=", value, "videoCard");
            return (Criteria) this;
        }

        public Criteria andVideoCardLessThan(String value) {
            addCriterion("video_card <", value, "videoCard");
            return (Criteria) this;
        }

        public Criteria andVideoCardLessThanOrEqualTo(String value) {
            addCriterion("video_card <=", value, "videoCard");
            return (Criteria) this;
        }

        public Criteria andVideoCardLike(String value) {
            addCriterion("video_card like", value, "videoCard");
            return (Criteria) this;
        }

        public Criteria andVideoCardNotLike(String value) {
            addCriterion("video_card not like", value, "videoCard");
            return (Criteria) this;
        }

        public Criteria andVideoCardIn(List<String> values) {
            addCriterion("video_card in", values, "videoCard");
            return (Criteria) this;
        }

        public Criteria andVideoCardNotIn(List<String> values) {
            addCriterion("video_card not in", values, "videoCard");
            return (Criteria) this;
        }

        public Criteria andVideoCardBetween(String value1, String value2) {
            addCriterion("video_card between", value1, value2, "videoCard");
            return (Criteria) this;
        }

        public Criteria andVideoCardNotBetween(String value1, String value2) {
            addCriterion("video_card not between", value1, value2, "videoCard");
            return (Criteria) this;
        }

        public Criteria andPrinterIsNull() {
            addCriterion("printer is null");
            return (Criteria) this;
        }

        public Criteria andPrinterIsNotNull() {
            addCriterion("printer is not null");
            return (Criteria) this;
        }

        public Criteria andPrinterEqualTo(String value) {
            addCriterion("printer =", value, "printer");
            return (Criteria) this;
        }

        public Criteria andPrinterNotEqualTo(String value) {
            addCriterion("printer <>", value, "printer");
            return (Criteria) this;
        }

        public Criteria andPrinterGreaterThan(String value) {
            addCriterion("printer >", value, "printer");
            return (Criteria) this;
        }

        public Criteria andPrinterGreaterThanOrEqualTo(String value) {
            addCriterion("printer >=", value, "printer");
            return (Criteria) this;
        }

        public Criteria andPrinterLessThan(String value) {
            addCriterion("printer <", value, "printer");
            return (Criteria) this;
        }

        public Criteria andPrinterLessThanOrEqualTo(String value) {
            addCriterion("printer <=", value, "printer");
            return (Criteria) this;
        }

        public Criteria andPrinterLike(String value) {
            addCriterion("printer like", value, "printer");
            return (Criteria) this;
        }

        public Criteria andPrinterNotLike(String value) {
            addCriterion("printer not like", value, "printer");
            return (Criteria) this;
        }

        public Criteria andPrinterIn(List<String> values) {
            addCriterion("printer in", values, "printer");
            return (Criteria) this;
        }

        public Criteria andPrinterNotIn(List<String> values) {
            addCriterion("printer not in", values, "printer");
            return (Criteria) this;
        }

        public Criteria andPrinterBetween(String value1, String value2) {
            addCriterion("printer between", value1, value2, "printer");
            return (Criteria) this;
        }

        public Criteria andPrinterNotBetween(String value1, String value2) {
            addCriterion("printer not between", value1, value2, "printer");
            return (Criteria) this;
        }

        public Criteria andMainBoardIsNull() {
            addCriterion("main_board is null");
            return (Criteria) this;
        }

        public Criteria andMainBoardIsNotNull() {
            addCriterion("main_board is not null");
            return (Criteria) this;
        }

        public Criteria andMainBoardEqualTo(String value) {
            addCriterion("main_board =", value, "mainBoard");
            return (Criteria) this;
        }

        public Criteria andMainBoardNotEqualTo(String value) {
            addCriterion("main_board <>", value, "mainBoard");
            return (Criteria) this;
        }

        public Criteria andMainBoardGreaterThan(String value) {
            addCriterion("main_board >", value, "mainBoard");
            return (Criteria) this;
        }

        public Criteria andMainBoardGreaterThanOrEqualTo(String value) {
            addCriterion("main_board >=", value, "mainBoard");
            return (Criteria) this;
        }

        public Criteria andMainBoardLessThan(String value) {
            addCriterion("main_board <", value, "mainBoard");
            return (Criteria) this;
        }

        public Criteria andMainBoardLessThanOrEqualTo(String value) {
            addCriterion("main_board <=", value, "mainBoard");
            return (Criteria) this;
        }

        public Criteria andMainBoardLike(String value) {
            addCriterion("main_board like", value, "mainBoard");
            return (Criteria) this;
        }

        public Criteria andMainBoardNotLike(String value) {
            addCriterion("main_board not like", value, "mainBoard");
            return (Criteria) this;
        }

        public Criteria andMainBoardIn(List<String> values) {
            addCriterion("main_board in", values, "mainBoard");
            return (Criteria) this;
        }

        public Criteria andMainBoardNotIn(List<String> values) {
            addCriterion("main_board not in", values, "mainBoard");
            return (Criteria) this;
        }

        public Criteria andMainBoardBetween(String value1, String value2) {
            addCriterion("main_board between", value1, value2, "mainBoard");
            return (Criteria) this;
        }

        public Criteria andMainBoardNotBetween(String value1, String value2) {
            addCriterion("main_board not between", value1, value2, "mainBoard");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}